var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');


var schema = new mongoose.Schema({
    name:{type: String},
    password:{type: String},
    mail:{type: String},
    city:{type: String},
    date: { type: Date, default: Date.now },
    gender:{type: String},
    interest:[],
    desc:{type: String}
});

schema.plugin(mongoosePaginate);

module.exports =  mongoose.model('User',  schema); // Model.paginate()